export const loginRule = {
  username: {
    type: 'email',
    required: true,
    message: '11',
  },
  password: {
    type: 'string',
    required: true,
  },
};

export const registRule = {
  username: {
    type: 'string',
    required: true,
  },
  password: {
    type: 'password',
    required: true,
  },
  email: {
    type: 'email',
    required: false,
  },
  avatar: {
    type: 'url',
    required: false,
  },
};

export const updateRule = {
  username: {
    type: 'string',
    required: false,
  },
  email: {
    type: 'email',
    required: false,
  },
  avatar: {
    type: 'url',
    required: false,
  },
  gender: {
    type: 'number',
    required: false,
  },
  signature: {
    type: 'string',
    required: false,
  },
  website: {
    type: 'url',
    required: false,
  },
};